package com.wl4837;

public class App
{
    public static void main( String[] args )
    {
        BookShelf shelf = new BookShelf(4);

        shelf.appendBook("Effective Java");
        shelf.appendBook("Clean Code");
        shelf.appendBook("Design Patterns");

        Iterator<String> iterator = shelf.createIterator();
        while (iterator.hasNext()) {
            String book = iterator.next();
            System.out.println(book);
        }
    }
}
